/**
 * *************************************
 * Copyright(c)2016 Dingdang Yixia 
 * All Rights Reserved.
 *
 * @File: WdgjStockServcieImpl.java
 * @Package: com.ddyx.service.impl
 * @Description:
 * 
 * @Version: V1.0
 * @Author: Yidong.Xiang
 * @Date: 2018年9月6日 下午9:57:38
 * 
 * *************************************
 */
package com.wdgj.sdk.service.impl;

import com.wdgj.sdk.model.request.SyncWdgjStockRequest;
import com.wdgj.sdk.model.response.SyncWdgjStockResponse;
import com.wdgj.sdk.service.WdgjStockService;
import com.wdgj.sdk.service.base.WdgjStockBaseService;
import com.wdgj.sdk.util.WdgjCloudClient;

import lombok.extern.slf4j.Slf4j;

/**
 * @ClassName: WdgjStockServcieImpl.java
 * @Module: 
 * @Description: 
 * 
 * @author: Yidong.Xiang
 * @date: 2018年9月6日 下午9:57:38
 * 
 */
@Slf4j
public class WdgjStockServiceImpl extends WdgjStockBaseService implements WdgjStockService {

	@Override
	public SyncWdgjStockResponse synchronize(SyncWdgjStockRequest request) {
		SyncWdgjStockResponse result = new SyncWdgjStockResponse();
		try {
			String response = WdgjCloudClient.sendPost(request);
			result.setResponse(response);
		}catch(Exception e)
		{
			log.error("[网店管家库存异动接口异常]",e);
		}
		return result;
	}

}
